//
//  RTCommonTools.swift
//  Weibo
//
//  Created by Brisinga on 16/3/6.
//  Copyright © 2016年 Root. All rights reserved.
//

import UIKit


    
    
let RTSwitchRootVCNotification: String = "RTSwitchRootVCNotification"

let kMargin:CGFloat = 8


let kScreenWidth = UIScreen.mainScreen().bounds.width

let kScreenHeight = UIScreen.mainScreen().bounds.height


// 随机颜色
func RandomColor() -> UIColor {
    // arc4random()
    // random() 有个问题,每次第一次同一时刻随机出来的值都是一样的
    return RGB(r: CGFloat(arc4random()%256), g: CGFloat(arc4random()%256), b: CGFloat(arc4random()%256))
}



func RGB(r red:CGFloat, g: CGFloat, b: CGFloat) -> UIColor {
    
    return UIColor(red: red/255, green: g/255, blue: b/255, alpha: 1)
}